<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<div id="app">
			<cpn1></cpn1>
			<cpn2></cpn2>
		</div>

		<script src="../lib/vue.js"></script>
		<script>
			const cpnC1 = Vue.component("cpn1", {
				template: `
        <div>
          <h2>我是标题1</h2>
          <p>我是内容，呵呵呵</p>
        </div>
        `
			});
			let vm = new Vue({
				el: "#app",
				data: { message: "hello" },
				components: {
					cpn2: {
						template: `
              <div>
                <h2>我是标题2</h2>
                <p>我是内容，哈哈哈</p>
              </div>
              `
					}
				},
				methods: {}
			});
		</script>
	</body>
</html>
